﻿<%@ page language="java" pageEncoding="utf-8"%>
<%@ page import="java.util.*" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>奋青网-后台管理系统</title>
<link href="css/Back.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/Jquery-1-5-2.js"></script>
<script type="text/javascript" src="js/Admin.js"></script>
</head>
<body>
<p class="Back_Title">后台登录信息</p>
<div class="Title_Line"></div>
<div class="Back_Dashed_Box">
<c:forEach items="${requestScope.user}" var="user">
<p>上次登录用户：<span class="Orange_Font">${user.username }</span> 上次登录时间<span class="Orange_Font">：${user.logindate }</span> 上次登录IP：<span class="Orange_Font">${user.loginip }</span> 登录总次数：<span class="Orange_Font">${user.logintime }</span></p>
</c:forEach>
</div>
<form>
<table class="Back_List" align="left" width="95%" cellspacing="0">
<tr><th width="30"><input type="checkbox"/></th><th width="32">序号</th>
  <th>登录用户</th>
  <th>用户类别</th>
<th>登录IP</th>
<th width="150">登录时间</th></tr>
<c:forEach items="${requestScope.admin}" var="admin" begin="${requestScope.start}" end="${requestScope.end}">
	<tr><td><input type="checkbox"/></td><td>${admin.adid }</td><td>${admin.username }</td>
    <td>${admin.classes }</td>
	<td>${admin.loginip }</td>
  <td>${admin.logindate }</td>
  </tr>
</c:forEach>
<c:if test="${empty requestScope.admin}">
	<tr><td colspan="3">暂无相关信息</td>
  </tr>
</c:if>

</table>
    <div class="Pages">
        <a href="?action=${requestScope.action}&page=1" class="Pages_a">首  页</a>
    	<c:choose>
        	<c:when test="${requestScope.page>1 }">
        		<a href="?action=${requestScope.action}&page=${requestScope.page -1 }" class="Pages_a">上一页</a>
        	</c:when>
        	<c:otherwise>
				<a class="Pages_a">上一页</a>        	
        	</c:otherwise>
        </c:choose>
    	<c:forEach items="${requestScope.count}" var="page">
        </c:forEach>
        <c:choose>
        <c:when test="${requestScope.page+1>requestScope.csize}">
        <a class="Pages_a">下一页</a>
        <a href="?action=${requestScope.action}&page=${requestScope.csize }" class="Pages_a">末页</a>
        </c:when>
        	<c:otherwise>
        		<a href="?action=${requestScope.action}&page=${requestScope.page +1 }" class="Pages_a">下一页</a>
        		<a href="?action=${requestScope.action}&page=${requestScope.csize }" class="Pages_a">末页</a>
        	</c:otherwise>
        </c:choose>
    </div>
</form>
</body>
</html>
